package cn.istartfinancial.service.impl;


import cn.istartfinancial.entity.SysRoleMenu;
import cn.istartfinancial.mapper.SysRoleMenuMapper;
import cn.istartfinancial.service.RoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author: Nzp
 * @date: 2018/8/22
 * @description: 角色菜单服务
 */
@Service
public class RoleMenuServiceImpl implements RoleMenuService
{
    @Autowired
    private SysRoleMenuMapper roleMenuMapper;

    @Override
    public List<SysRoleMenu> selectByCondition(SysRoleMenu sysRoleMenu)
    {
        return roleMenuMapper.selectByCondition(sysRoleMenu);
    }

    @Override
    public int selectCountByCondition(SysRoleMenu sysRoleMenu)
    {
        return roleMenuMapper.selectCountByCondition(sysRoleMenu);
    }

    @Override
    public int deleteByPrimaryKey(SysRoleMenu sysRoleMenu)
    {
        return roleMenuMapper.deleteByPrimaryKey(sysRoleMenu);
    }

    @Override
    public int selectCount(SysRoleMenu sysRoleMenu)
    {
        return roleMenuMapper.selectCount(sysRoleMenu);
    }

    @Override
    public int insert(SysRoleMenu sysRoleMenu)
    {
        return roleMenuMapper.insert(sysRoleMenu);
    }
}
